package com.lj.ljminsu.merchant.GuanjiaController;

import com.lj.ljminsu.merchant.GuanjiaBean.PageUtil;
import com.lj.ljminsu.merchant.GuanjiaService.impl.OderService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@CrossOrigin
public class Fenye2Controller {
    @Resource
    private OderService oderService;
    @RequestMapping("FenyeSerchT")
    @ResponseBody
    public PageUtil tjOrderList(Integer DanQye){
      Integer danqye=DanQye;
        PageUtil pageUtil = oderService.QueueTotalPage(danqye);
        pageUtil.setPageNum(danqye);
        return pageUtil;
    }
}
